/**
 * Created by yangsong on 2014/11/22.
 */
class Log {
    /**
     * Debug_Log
     * @param messsage 内容
     * @constructor
     */
    public static trace(...optionalParams: any[]): void {
        if (App.DebugUtils.isDebug) {
            let date: Date = new Date();
            optionalParams[0] = " [DebugLog]----" + date.toString() + date.getMilliseconds() + "  " + optionalParams[0];
            console.log.apply(console, optionalParams);
        }
    }

    public static nativeTrace(...params: any[]): void {
        if (App.DebugUtils.isDebug) {
            egret.log("调试面板日志：",params);
        }
    }
}